package cn.adviceclient.features.module.impl.render;

import cn.adviceclient.features.module.Category;
import cn.adviceclient.features.module.Module;
import cn.adviceclient.features.value.ModeSetting;
import cn.adviceclient.gui.click.advice.AdviceClickGui;
import cn.adviceclient.gui.click.neverlose.NeverLose;
import net.minecraft.client.gui.GuiScreen;
import org.lwjgl.input.Keyboard;

import java.util.List;

public class ClickGui extends Module {
    private static final ModeSetting mode = new ModeSetting("Mode","Clickgui Styles","Advice", List.of("Advice","Neverlose"));
    public ClickGui() {
        super("ClickGui", "Modern Neverlose-style GUI", Category.RENDER);
        this.settings.add(mode);
        this.bindKey(Keyboard.KEY_RSHIFT);
    }
    
    @Override
    public void onEnable() {
        GuiScreen gui = new AdviceClickGui(this);
        if(mode.is("Advice")){
            gui = new AdviceClickGui(this);
        }
        if(mode.is("Neverlose")){
            gui = new NeverLose();
        }
        mc.displayGuiScreen(gui);
        toggle();



    }
}